import Vue from 'vue'
import App from './App.vue'

// router
import router from './router/router'

// store
import store from './store/store'

// --全局axios
import axios from 'axios'

// --全局使用 this.$axios
Vue.prototype.$axios = axios

// --全局iview
import iView from 'iview';
//import 'iview/dist/styles/iview.css';
import './my-theme/index.less';
Vue.use(iView,{});

// --全局重置样式表
require('./common/css/reset.css')

// --全局common css
require('./common/css/common.css')

// --全局 aliicon字体
require('./common/fonts/aliicon/iconfont.css')

// --全局filters
import filters from './filters'
Object.keys(filters).forEach(k => Vue.filter(k,filters[k]));

// --全局异常处理
import serviceException from '@/network/ServiceException.js'
Vue.prototype.$exception = serviceException;

Vue.config.productionTip = false

new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
